<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="/pages/mastertemplate/MasterPage.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="toptoolsbar" />
	<ui:define name="right">
		<div class="center" style="width: 600px">
			<h:outputText value="#{msg.login_welcome}" style="font-size:250%;" />
			<!-- For debug only -->
			<br /> <br /> <br />
		</div>
		<div class="center" style="width: 400px">
			<h:form id="login" prependId="false">
				<p:growl id="messages" />
				<h:panelGrid columns="2" cellpadding="5">
					<h:outputLabel value="#{msg.login_username} : " />
					<p:inputText id="username" value="#{UserBean.userId}"
						required="true" label="User name" />
					<h:outputLabel value="#{msg.login_password}  :" />
					<p:password id="password" value="#{UserBean.password}"
						required="true" label="Password" feedback="false" />
					<h:outputText value="" />
					<h:panelGroup style="float: right">
						<h:commandButton value="#{msg.general_login}"
							action="#{UserBean.attemptLogin}" />
					</h:panelGroup>
					<p:focus for="username" />
				</h:panelGrid>
				<br />
			</h:form>
		</div>
	</ui:define>
</ui:composition>
